package lesson06;

import java.util.Queue;
import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;

public class Demo_601 {
    public static void main(String[] args) throws InterruptedException {
       MyBlockingQueue myBlockingQueue=new MyBlockingQueue(3);
       myBlockingQueue.put(1);
        myBlockingQueue.put(2);
        myBlockingQueue.put(3);
        System.out.println("11");
       // myBlockingQueue.put(4);11111
        System.out.println(myBlockingQueue.talk());
        System.out.println(myBlockingQueue.talk());
        System.out.println(myBlockingQueue.talk());
    }
}
